#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QString>
#include <QValidator>
#include <QRegularExpressionValidator>
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    QString ip_in = "000.000.000.000;_";
    ui->mac_addrlineEdit->setInputMask(ip_in);
    ui->mac_addrlineEdit->setEchoMode(QLineEdit::Normal);
    QRegularExpression reg("[A-Za-z0-9_-]+@[A-Za-z0-9]+\.[A-Za-z0-9]\.");
    QValidator *qv = new QRegularExpressionValidator(reg, this);

    ui->email_lineedit->setValidator(qv);
}

MainWindow::~MainWindow()
{
    delete ui;
}
